<!--  -->
<template>
<div class="aujurisdiction">
 <!-- 引入权限 -->
 <div class="jurisdiction">
   <add-jurisdiction @checkeddata='checkeddata' :datas='datas'></add-jurisdiction>
 </div>
</div>
</template>

<script>
import AddJurisdiction from '../../components/jurisdiction/jurisdiction';
export default {
data() {
return {
  checkeds:[],//传给后端的权限数组
  datas:[{
          id: 1,
          label: '一级 1',
          children: [{
            id: 4,
            label: '二级 1-1',
            children: [{
              id: 9,
              label: '三级 1-1-1'
            }, {
              id: 10,
              label: '三级 1-1-2'
            }]
          }]
        }, {
          id: 2,
          label: '一级 2',
          children: [{
            id: 5,
            label: '二级 2-1'
          }, {
            id: 6,
            label: '二级 2-2'
          }]
        }, {
          id: 3,
          label: '一级 3',
          children: [{
            id: 7,
            label: '二级 3-1'
          }, {
            id: 8,
            label: '二级 3-2'
          }]
        }],//传给子页面的数据
}
},
//生命周期 - 创建完成（访问当前this实例）
created() {

},
//生命周期 - 挂载完成（访问DOM元素）
mounted() {

},
components:{
    AddJurisdiction
        },
methods:{
    checkeddata(e){
       this.checkeds = e;
    }
}
}
</script>
<style scoped>
/* @import url(); 引入css类 */
.aujurisdiction{
    width: 100%;
    min-height: 85vh;
    background: #eff2f7;
    overflow-y:auto ;
}
.jurisdiction{
    width: 100%;
   min-height: 85vh;
   margin-top: 2vh;
   background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  
}
</style>